package com.mashibing.servicemap.controller;


import com.mashibing.dto.ForecastPrice;
import com.mashibing.dto.ResponseResult;
import com.mashibing.servicemap.service.DirectionService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.*;

@RestController
@RequestMapping("/direction")
public class DirectionController {

    @Autowired
    private DirectionService directionService;

    @GetMapping("/driving")
    public ResponseResult driving(@RequestBody ForecastPrice forecastPrice) {
        return directionService.driving(forecastPrice);
    }
}
